<?php
	function getCateNameById($id)
	{
		if($id=='0'){
			return "顶级分类";
		}
		$data = DB::table('cates')->where('id','=',$id)->first();
		return $data->name;
	}